<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>range范围的选择</title>
  <style>
    * {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
    }
  </style>
</head>

<body>
  <div>
    Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nemo consectetur necessitatibus molestiae itaque minus
    sapiente illo ab possimus impedit quibusdam porro asperiores, quod, iure cumque excepturi. Nisi similique aut
    voluptates.
  </div>
</body>
<script>
  "use strict";
  let range = document.createRange();

  /* range.setStart(startNode, startOffset);
  range.setEnd(endNode, endOffset); */
  console.log("用户的了吧", range);
</script>

</html>